package guowei.gulielasticsearch.vo;

import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * 查询数据索要携带的参数
 */
@Data
@ToString
public class SearchParam {
    private String keyword; //页面传来的全文匹配参数
    private Long catalog3Id; //三级分类id

    /**
     *      sort=saleCount_asc/desc
     *      sort=skuPrice_asc/desc
     *      sort=hotScore_asc/desc
     */
    private String sort;    //排序条件

    private Integer hasStock;   //只显示是否有货
    private String skuPrice;     //价格区间查询
    private List<Long> brandId;    //按照品牌进行查询
    private List<String> attrs;     //按照属性进行筛选
    private Integer pageNum= 1 ;     //页码

    private String _queryString;  //请求的查询条件
}
